<?php
namespace app\admin\controller;

use think\File;
use think\Config;

class Test
{
    public function index()
    {
          $rel = setconfig(['app_id'=>'1111','welcome'=>'1111'],'wechat',APP_PATH.'/admin/extra/wechat.php');
          halt($rel);
//        move_uploaded_file
//        dump(('file' && 'dir') == 'file');
//        dump(is_file('a/1.jpg'));
//        dump(temp_to_uploads('f/a/aaa.jpg','f/b/aaa.jpg'));
//        dump(rename('uploads/temp/5ccaa63b32d6f.jpg','uploads/pic/5ccaa63b32d6f.jpg'));
//        rename('uploads/temp/5cc6a406a5dc5.jpg','uploads/pic/5cc6a406a5dc5.jpg');
//        dump(ROOT_PATH);
//        "1.jpg"->move(RUNTIME_PATH);
//        dump(encryptDecrypt(config('assist_key'),session('username', '','admin'),1));
    }
}